package mysqlredis;

public class Main {
    public static void main(String[] args) {
        MySQLRedisDemo demo = new MySQLRedisDemo();

        for (int i=1;i<=5;i++){
            System.out.println("第"+i+"次查询");
            Student stu=demo.getStudentById(1);
            if (stu!=null){
                System.out.println("ID:"+stu.getId()+",Name:"+stu.getName()+",Age:"+stu.getAge()+",Score:"+stu.getScore());
            }
        }
        demo.Close();
    }
}
